<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 小龙
  Date: 2022/1/21
  Time: 17:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>列表页面</title>
</head>
<body>
<a href="${pageContext.request.contextPath}/editUser.jsp">新增用户</a>

<table border="1" cellspacing="0">
    <tr>
        <td>账号</td>
        <td>昵称</td>
        <td>编辑</td>
    </tr>
    <c:forEach items="${list}" var="item">
        <tr>
            <td>${item.name}</td>
            <td>${item.nickName}</td>
            <td>
                <a href="${pageContext.request.contextPath}/findUser?id=${item.id}">编辑</a> /
                <a href="${pageContext.request.contextPath}/delUser?id=${item.id}">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
